package com.gofruit.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author 陈瑶
 * @see 产品类别实体、主要是两类水果和小吃
 *
 */
public class Category {
	
	private int catagoryId;//类别编号，与意思
	private String catagoryName;//类别名
	private String catagoryDetail;//类别描述
	//与Product一对多
	private Set<Product> products = new HashSet<Product>();
	public int getCatagoryId() {
		return catagoryId;
	}
	public void setCatagoryId(int catagoryId) {
		this.catagoryId = catagoryId;
	}
	public String getCatagoryName() {
		return catagoryName;
	}
	public void setCatagoryName(String catagoryName) {
		this.catagoryName = catagoryName;
	}
	public String getCatagoryDetail() {
		return catagoryDetail;
	}
	public void setCatagoryDetail(String catagoryDetail) {
		this.catagoryDetail = catagoryDetail;
	}
	public void setProducts(Set<Product> products) {
		this.products = products;
	}
	public Set<Product> getProducts() {
		return products;
	}
	public Category(int catagoryId, String catagoryName, String catagoryDetail) {
		super();
		this.catagoryId = catagoryId;
		this.catagoryName = catagoryName;
		this.catagoryDetail = catagoryDetail;
	}
	public Category() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
